<?php

/**
 * TOP API: taobao.fenxiao.product.sku.add request
 *
 * @author auto create
 * @since  1.0, 2013-09-13 16:51:03
 */
class Taobao_Request_FenxiaoProductSkuAddRequest {
	/**
	 * 代销采购价
	 **/
	private $agentCostPrice;

	/**
	 * 经销采购价
	 **/
	private $dealerCostPrice;

	/**
	 * 产品ID
	 **/
	private $productId;

	/**
	 * sku属性
	 **/
	private $properties;

	/**
	 * sku产品库存，在0到1000000之间，如果不传，则库存为0
	 **/
	private $quantity;

	/**
	 * 商家编码
	 **/
	private $skuNumber;

	/**
	 * 采购基准价，最大值1000000000
	 **/
	private $standardPrice;

	private $apiParas = array();

	public function setAgentCostPrice($agentCostPrice) {
		$this->agentCostPrice = $agentCostPrice;
		$this->apiParas["agent_cost_price"] = $agentCostPrice;
	}

	public function getAgentCostPrice() {
		return $this->agentCostPrice;
	}

	public function setDealerCostPrice($dealerCostPrice) {
		$this->dealerCostPrice = $dealerCostPrice;
		$this->apiParas["dealer_cost_price"] = $dealerCostPrice;
	}

	public function getDealerCostPrice() {
		return $this->dealerCostPrice;
	}

	public function setProductId($productId) {
		$this->productId = $productId;
		$this->apiParas["product_id"] = $productId;
	}

	public function getProductId() {
		return $this->productId;
	}

	public function setProperties($properties) {
		$this->properties = $properties;
		$this->apiParas["properties"] = $properties;
	}

	public function getProperties() {
		return $this->properties;
	}

	public function setQuantity($quantity) {
		$this->quantity = $quantity;
		$this->apiParas["quantity"] = $quantity;
	}

	public function getQuantity() {
		return $this->quantity;
	}

	public function setSkuNumber($skuNumber) {
		$this->skuNumber = $skuNumber;
		$this->apiParas["sku_number"] = $skuNumber;
	}

	public function getSkuNumber() {
		return $this->skuNumber;
	}

	public function setStandardPrice($standardPrice) {
		$this->standardPrice = $standardPrice;
		$this->apiParas["standard_price"] = $standardPrice;
	}

	public function getStandardPrice() {
		return $this->standardPrice;
	}

	public function getApiMethodName() {
		return "taobao.fenxiao.product.sku.add";
	}

	public function getApiParas() {
		return $this->apiParas;
	}

	public function check() {

		Taobao_RequestCheckUtil::checkNotNull($this->productId, "productId");
		Taobao_RequestCheckUtil::checkNotNull($this->properties, "properties");
		Taobao_RequestCheckUtil::checkMaxValue($this->quantity, 1000000, "quantity");
		Taobao_RequestCheckUtil::checkMinValue($this->quantity, 0, "quantity");
		Taobao_RequestCheckUtil::checkNotNull($this->standardPrice, "standardPrice");
	}

	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
